package day04;

public class Method01 {                                   //写数组遍历的方法
    public static void outarr(int[] arr){
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");
        }
    }
    public static void main(String[] args) {
        int[] arr1={1,2,3,4,5};
        outarr(arr1);
    }
}
